<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TOP PITCH - Student Profile</title>
<link href="resources/css/common.css" rel="stylesheet" type="text/css" />
<link href="resources/css/search.css" rel="stylesheet" type="text/css" />
<link href="resources/css/left_nav.css" rel="stylesheet" type="text/css" />
<link href="resources/css/hf/student_profile.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="resources/jss/jquery-1.7.2.min.js" ></script>
<script type="text/javascript" src="resources/jss/hf/studentprofile.js" ></script>
</head>
<body>
	<div class="main">
		<jsp:include page="../header.inc.jsp"></jsp:include>
		<table>
			<tr>
				<jsp:include page="leftNav.inc.jsp"></jsp:include>
				<td class="rightcontent">
					<div>
						<div class="searchbox">
							<span>Search Profiles</span><br/>
							<input id="searchWordsInput" value="${ searchWords }" type="text" class="searchinput">
							<input id="profileSearchButton" type="button" value="Search" class="button searchbutton">
							<input id="currentSearchWords" value="${ searchWords }" type="hidden" />
						</div>
						<div class="filterbox">
							<div class="filtertitle">School</div>
							<div class="filtercontent">
								<table>
									<tr>
									<td><input id="schoolFilterInput1" type="checkbox" value="Harvard">Harvard</td>
									<td><input id="schoolFilterInput2" type="checkbox" value="Stanford">Stanford</td>
									<td><input id="schoolFilterInput3" type="checkbox" value="Wharton">Wharton</td>
									<td><input id="schoolFilterInput4" type="checkbox" value="Kellogg">Kellogg</td>
									<td><input id="schoolFilterInput5" type="checkbox" value="Booth">Booth</td>
									<td><input id="schoolFilterInput6" type="checkbox" value="MIT">MIT</td>
									</tr>
								</table>
							</div>
							<div class="filtertitle">Industry</div>
							<div class="filtercontent">
								<table>
									<tr>
									<td><input id="industryFilterInput1" type="checkbox" value="Hedge Fund">Hedge Fund</td>
									<td><input id="industryFilterInput2" type="checkbox" value="Private Equity">Private Equity</td>
									<td><input id="industryFilterInput3" type="checkbox" value="Venture Capital">Venture Capital</td>
									<td><input id="industryFilterInput4" type="checkbox" value="Mutual Fund">Mutual Fund</td>
									<td style="width:200px;"><input id="industryFilterInput5" type="checkbox" value="Other Investment Professional">Other Investment Professional</td>
									</tr>
									<tr>
									<td><input id="industryFilterInput6" type="checkbox" value="Medicine">Medicine</td>
									<td><input id="industryFilterInput7" type="checkbox" value="Law">Law</td>
									<td><input id="industryFilterInput8" type="checkbox" value="Business">Business</td>
									<td><input id="industryFilterInput9" type="checkbox" value="Retail">Retail</td>
									</tr>
								</table>
							</div>
						</div>
						<input id="filterButton" type="button" value="Filter" class="button" />
						<c:forEach var="student" items="${ students }">
						<div class="profilesummaryitem">
							<div class="profilesummaryname">
							<a href="profile?email=${ student.email }">
							<c:out value="${ student.firstName } ${ student.lastName }" />
							</a></div>
							<div class="profilesummaryperformance">
								<strong>Ideas</strong> <c:out value="${ student.pitchCountString }" />.<br/>
							    <strong>Models</strong> <c:out value="${ student.modelCountString }" />. <br />
							</div>
						</div>
						</c:forEach>
						
						<c:if test="${ needPaging }">
						<div class="paging">
							<c:if test="${ needPrevious }">
							<a id="previousPageLink" href="#">Previous</a>
							<script type="text/javascript">
								bindPageLink("previousPageLink", "${ previousIndex }" );
							</script>
							&nbsp;
							</c:if>
							<c:forEach var="paging" items="${ pagings }">
								<a id="pageLink${ paging.index }" href="#">${ paging.index }</a>
								&nbsp;
								<script type="text/javascript">
									bindPageLink("pageLink${ paging.index }", "${ paging.index }" );
								</script>
							</c:forEach>
							<c:if test="${ needNext }">
							<a id="nextPageLink" href="#">Next</a>
							<script type="text/javascript">
								bindPageLink("nextPageLink", "${ nextIndex }" );
							</script>
							</c:if>
						</div>
						</c:if>
					</div>
				</td>
			</tr>
		</table>
		<form id="frm" action="profilelist" method="post">
			<input type="hidden" name="keyWords" id="keyWords" value="${ searchWords }" />
			<input type="hidden" name="page" id="page" value="0" />
			
			<input type="hidden" name="schoolFilter1" id="schoolFilter1" value="${ schoolFilter1 }" />
			<input type="hidden" name="schoolFilter2" id="schoolFilter2" value="${ schoolFilter2 }" />
			<input type="hidden" name="schoolFilter3" id="schoolFilter3" value="${ schoolFilter3 }" />
			<input type="hidden" name="schoolFilter4" id="schoolFilter4" value="${ schoolFilter4 }" />
			<input type="hidden" name="schoolFilter5" id="schoolFilter5" value="${ schoolFilter5 }" />
			<input type="hidden" name="schoolFilter6" id="schoolFilter6" value="${ schoolFilter6 }" />
			<input type="hidden" name="industryFilter1" id="industryFilter1" value="${ industryFilter1 }" />
			<input type="hidden" name="industryFilter2" id="industryFilter2" value="${ industryFilter2 }" />
			<input type="hidden" name="industryFilter3" id="industryFilter3" value="${ industryFilter3 }" />
			<input type="hidden" name="industryFilter4" id="industryFilter4" value="${ industryFilter4 }" />
			<input type="hidden" name="industryFilter5" id="industryFilter5" value="${ industryFilter5 }" />
			<input type="hidden" name="industryFilter6" id="industryFilter6" value="${ industryFilter6 }" />
			<input type="hidden" name="industryFilter7" id="industryFilter7" value="${ industryFilter7 }" />
			<input type="hidden" name="industryFilter8" id="industryFilter8" value="${ industryFilter8 }" />
			<input type="hidden" name="industryFilter9" id="industryFilter9" value="${ industryFilter9 }" />
		</form>
		<jsp:include page="../footer.inc.jsp"></jsp:include>
	</div>
		<jsp:include page="../copyright.inc.jsp"></jsp:include>
</body>
</html>
